package com.guoguo.cloudmusic.ui.home.mine

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import com.guoguo.cloudmusic.R
import com.guoguo.cloudmusic.databinding.ActivityMainBinding
import com.guoguo.cloudmusic.databinding.FragmentMineBinding
import com.guoguo.cloudmusic.extension.load
import com.guoguo.cloudmusic.logic.dao.UserInfoDao
import com.guoguo.cloudmusic.ui.common.BaseFragment

/**
 * @author GuoGuo
 * @date 2021/12/20
 */
class MineFragment : BaseFragment() {
    private var userInfo = UserInfoDao.getUserInfo()
    private lateinit var _binding: FragmentMineBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        _binding = DataBindingUtil.inflate(inflater, R.layout.fragment_mine, container, false);
        _binding.user = userInfo
        return _binding.root;
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
    }
}